package com.dbq.fast.business.main.model;

import com.dbq.fast.business.main.bean.VpnNode;

import org.junit.Test;

import static junit.framework.Assert.assertEquals;
import static junit.framework.Assert.assertNotNull;

/**
 * Created by sunkai on 2017/10/30.
 */
public class VPNModelTest {
    @Test
    public void getVpnConfig() throws Exception {

        VpnModel vpnModel = new VpnModel();
        VpnNode configBean = vpnModel.getVpnConfig("4+Wldtz2w0kxE1hhpgcmungdEJATb3fYfO10plgHxuPoqSMehKpHl8agLDQsKNLon34E35NIdaDHr5Ph7CkMYfbt2AVaXieF", "wx-471a28686f45429a8d4fe157d8661113");

        assertNotNull(configBean);
        assertEquals("192.168.1.94", configBean.getServer());
    }

}